/**
 * Resourece
 * @ 第一屏 杂项
 */
import { Base } from "@/pixi/base";
class Resourece extends Base {
  Resourece: any[];
  getSprites: any;
  isRendering: boolean;
  position: object | string;
  anchor: object | string;
  constructor() {
    super();
    this.Resourece = [
      {
        name: `bg`,
        url: require(`@/${this.baseUrl}/images/bg.jpg`),
      },
    ];
    this.getSprites = {
      bg: {
        key: `bg`,
        size: { width: this.width, height: this.height },
        position: "center",
        anchor: "center",
        alpha: '1',
      },
    };
    this.position = { x: 0, y: 0 };
    this.anchor = "center";
    this.isRendering = true;
  }
}
export default new Resourece();
